/*
 * @Author: your name
 * @Date: 2022-03-29 22:18:41
 * @LastEditTime: 2022-05-11 17:12:53
 * @LastEditors: 陈宇 975155172@qq.com
 * @Description: 分类接口对象
 * @FilePath: \blog-api\src\abstract\dto\create-post.dot.ts
 */

import { ApiProperty } from '@nestjs/swagger';

// 入口参数
export class CreatePostDto {
    @ApiProperty({ description: '分类ID' })
    readonly id: number;
}

export class QueryCategoriesDto {
    @ApiProperty({ description: '分类ID' })
    readonly ids: CreatePostDto[];
}

export class AddCategoriesPostDto {
    @ApiProperty({ description: '标签ID' })
    readonly id?: string | number;
    @ApiProperty({ description: '标签名称' })
    readonly name: string;
    @ApiProperty({ description: '描述' })
    readonly describe: string;
}

export class RemoveCategoriesPostDto {
    @ApiProperty({ description: '标签ID' })
    readonly id?: string | number;
}

// 返回参数
export class Categories{
    data?: any;
}

// 返回参数
export class CategoriesDto{
    list?: Categories[];
    total?: number | string;
    page?: number | string;
    pageCount?: number | string;
    pageSize?: number | string;
}